home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Control Panel Hide Pwd.xpl < prev    next >
Text File  |  2000-11-13  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Appearance\Control Panel\Other Settings"
  5. "NAME"="Visible pages in "Passwords""
  6. "OSVERSION"="11101"
  7. "LANGUAGE"="VBScript"
  8. "VERSION"="1.03"
  9. "TEXT 1"="Show "Remote administration" tab in Passwords control"
  10. "TEXT 2"="Show "User profiles" page in Passwords control"
  11. "TEXT 3"="Show "Change passwords" page in Passwords control"
  12. "DESCRIPTION 1"="To show a page inside the "Passwords" applet, activate it. To hide it, deactivate it."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Thanks to CptSiskoX for his help!"
  18.  
  19.  
  20.  
  21. sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
  22.  
  23. sV1="NoAdminPage" 'all dword (1 = remove)
  24. sV2="NoProfilePage"
  25. sV3="NoPwdPage"
  26.  
  27. Sub Plugin_Initialize 
  28.     i=RegReadValue(sPath & sV1)
  29.     if i<>1 then SetUIElement 1,true
  30.  
  31.     i=RegReadValue(sPath & sV2)
  32.     if i<>1 then SetUIElement 2,true
  33.  
  34.     i=RegReadValue(sPath & sV3)
  35.     if i<>1 then SetUIElement 3,true
  36. End Sub
  37.  
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  Call WriteIt(1,sPath,sV1)
  43.  Call WriteIt(2,sPath,sV2)
  44.  Call WriteIt(3,sPath,sV3)
  45.  
  46.  Call IndicateSettingChange()
  47. End Sub
  48.  
  49. Sub WriteIt(ITM,PAT,VAL)
  50.  b=GetUIElement(ITM)
  51.  if b=false then
  52.     call RegWriteValue(PAT & VAL,1,2)
  53.  else
  54.     chk=RegReadValue(PAT & VAL)
  55.     if IsEmpty(chk)=false then
  56.        Call RegDeleteValue(PAT & VAL)
  57.     end if
  58.  end if
  59. end sub
  60.  
  61. Sub Plugin_Terminate 
  62. End Sub
  63.  
  64.  
  65.  
  66.